package com.grj.template.boot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.grj.template.boot.domain.RolePermission;
import com.grj.template.boot.service.RolePermissionService;
import com.grj.template.boot.mapper.RolePermissionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author eren
* @description 针对表【role_permission】的数据库操作Service实现
* @createDate 2024-10-24 16:32:45
*/
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission>
    implements RolePermissionService{

    @Override
    public List<RolePermission> listAll(Long roleId) {
        return baseMapper.selectAll(roleId);
    }

    @Override
    public void updateRolePermission(List<RolePermission> updateRolePermissions) {
        baseMapper.updateRolePermissions(updateRolePermissions);
    }
}




